cmake_minimum_required(VERSION 3.10)
project(LinuxHardwareInfo)

# 设置c++版本
set(CMAKE_CXX_STANDARD 17)

file(GLOB SOURCES *.cpp)

# 设置可执行文件输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})

# 添加可执行文件，指定多个源文件
add_executable(LinuxHardwareInfo ${SOURCES})